package asedra.huyle.dto;

import java.util.Date;

import android.database.Cursor;

public class Player extends BaseDto{

	public static final String TABLE_NAME = "player";

	public static final String PLAYER_ID = "p_id";

	public static final String NAME = "name";

	public static final String AVATAR = "avatar";

	public static final String[] COLUMNS = new String[]{PLAYER_ID, NAME, AVATAR};

	public static final String DEFAULT_SORT_ORDER = NAME + " ASC";
	
	private int playerId;
	private String name;
	private String avatar;
	
	public Player() {
		super();
	}
	
	public Player(Cursor c) {
		super();
		this.playerId = c.getInt(c.getColumnIndex(PLAYER_ID));
		this.name = c.getString(c.getColumnIndex(NAME));
		this.avatar = c.getString(c.getColumnIndex(AVATAR));
	}
	
	public Player(int playerId, String name, String avatar) {
		super();
		this.playerId = playerId;
		this.name = name;
		this.avatar = avatar;
	}

	public int getPlayerId() {
		return playerId;
	}

	public void setPlayerId(int playerId) {
		this.playerId = playerId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	
}
